import { FOLLOW_PAGES, FOLLOW_PAGES_TAB } from './follow/constants'
import { HOME_PAGES, HOME_PAGES_TAB } from './home/constants'
import { INVEST_PAGES, INVEST_PAGES_TAB } from './invest/constants'
import { QUOTES_PAGES, QUOTES_PAGES_TAB } from './quotes/constants'
import { useGlobalIconFont } from './theme/iconfont/helper'
import { USER_PAGES, USER_PAGES_TAB } from './user/constants'
export default defineAppConfig({
  pages: [
    ...HOME_PAGES,
    ...QUOTES_PAGES,
    ...INVEST_PAGES,
    ...FOLLOW_PAGES,
    ...USER_PAGES
  ],
  permission: {
    'scope.userFuzzyLocation': {
      desc: '你的位置信息将用于确认给您提供服务的最近门店'
    },
  },
  lazyCodeLoading: 'requiredComponents',
  requiredPrivateInfos: [
    'getFuzzyLocation'
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'black'
  },
  tabBar: {
    "custom": false,
    "backgroundColor": "#121325",
    "borderStyle": "black",
    "selectedColor": "#ffffff",
    "color": "#ffffff",
    "list": [
      HOME_PAGES_TAB,
      INVEST_PAGES_TAB,
      QUOTES_PAGES_TAB,
      FOLLOW_PAGES_TAB,
      USER_PAGES_TAB
    ]
  },
  plugins: {
  },
  debug: true,
  usingComponents: Object.assign(useGlobalIconFont())
})
